package com.lollipop.ucenter.rpc.service;

import com.lollipop.common.service.CrudServiceImpl;
import com.lollipop.ucenter.rpc.api.RoleService;
import com.lollipop.ucenter.rpc.model.Role;
import com.lollipop.ucenter.rpc.repository.RoleDao;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service("roleService")
public class RoleServiceImpl extends CrudServiceImpl<RoleDao, Role> implements RoleService {

    @Override
    public Set<Role> findRolesByUserId(String userId) {
        return dao.findRolesByUserId(userId);
    }

}
